<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ page contentType="text/html;charset=utf-8"%>
<html>
<head>
<!--<meta http-equiv="Content-Type" content="text/html; charset=utf-8">-->
<link href="<%=request.getContextPath() + "/css/bloques.css"%>"
	rel="stylesheet" type="text/css">
<title>Usuarios Administradores</title>

<script type="text/javascript">
       
        function fAceptar(){
          document.frmSelectUser.submit();
        }
        
        function fbuscar(){
          document.frmSelectUser.submit();
        }
        
        function enviar(locacion){
          document.frmSelectUser.action=locacion;
          document.frmSelectUser.submit();
        }
        
        function fvalue(cod, nombre)
        {
          opener.document.frmauditoria.admincodigo.value = cod;
          opener.document.frmauditoria.administrador.value = nombre;
          window.close();
        }
         
    </script>
</head>
<body>
	<P>&nbsp;</P>
	<P align="center"></P>
	<P align="center" class="titulosenblanco">USUARIOS ADMINISTRADORES</P>
	<form name="frmSelectUser" method="get"
		action="<%=request.getContextPath()
					+ "/Reportes/ControlAcceso/CASelectUserMain.do"%>">
		<div align="center">
			<table
				style="width: 60%; border-spacing: 2px; padding: 3px; border: 0;">
				<tr>
					<td width="25%" class="celdatabla" align="center"><STRONG>Usuario</STRONG>
					</td>
					<td width="75%" align="left"><input type="text" class="form"
						name="NameUser" maxlength="40" size="20" /></td>
				</tr>
				<tr>
					<td width="25%" height="8" align="right" class="celdatabla"><input
						type="radio" name="find" value="nombre" />IDENTIFICACION</td>
					<td width="75%" height="8" align="center" class="celdatabla">
						<input type="radio" name="find" value="description"
						checked="checked" />NOMBRE
					</td>
				</tr>
				<tr>
					<td width="25%" height="8"></td>
					<td width="75%" height="8"></td>
				</tr>
				<tr>
					<td width="75%" align="center" colspan="2">
						<!--<input type="submit" value="Buscar" language="javascript" onclick="fbuscar"/> -->
						<%
							String Ruta2 = "'" + request.getContextPath()
									+ "/Reportes/ControlAcceso/CASelectUserMain.do'";
						%> <input type="BUTTON" value="Buscar"
						onclick="enviar(<%=Ruta2%>)" />
					</td>
				</tr>
			</table>
		</div>
		<DIV align="center">
			<logic:present scope="session" name="cUsers">
				<div align="center">
					<table class="tablaGenericaWidth60">
						<tr>
							<td><display:table name="sessionScope.cUsers"
									class="bordesTable" id="users" style="width:100%">

									<display:column property="name" headerClass="headerTable"
										title="IDENTIFICACION" class="Numero" sortable="false">
									</display:column>
									<display:column property="description"
										headerClass="headerTable" title="DESCRIPCION" class="Numero"
										sortable="false">
									</display:column>
									<display:column headerClass="headerTable" title="SELECCIONAR"
										class="Numero" sortable="false">
										<bean:define id="nombre" name="users" property="name"></bean:define>
										<bean:define id="codigo" name="users" property="code"></bean:define>
										<input type="radio" name="seleccionar"
											onclick="fvalue('<%=codigo%>','<%=nombre%>')" />
									</display:column>

								</display:table></td>
						</tr>
					</table>
				</div>
			</logic:present>
			<logic:notPresent scope="session" name="cUsers">
			</logic:notPresent>
		</DIV>
	</form>
</body>
</html>
